﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.sybase;

namespace SharpSqlAnalyzer.stmt.sybase
{
	// Token: 0x020000E4 RID: 228
	public class TSybaseWritetext : TCustomSqlStatement
	{
		// Token: 0x060007CC RID: 1996 RVA: 0x0030126A File Offset: 0x002FF46A
		public TSybaseWritetext(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstsybaseWritetext;
		}

		// Token: 0x1700016A RID: 362
		// (get) Token: 0x060007CD RID: 1997 RVA: 0x0030127E File Offset: 0x002FF47E
		// (set) Token: 0x060007CE RID: 1998 RVA: 0x00301286 File Offset: 0x002FF486
		public virtual TObjectName ColumnName
		{
			get
			{
				return this.columnName;
			}
			set
			{
				this.columnName = value;
			}
		}

		// Token: 0x1700016B RID: 363
		// (get) Token: 0x060007CF RID: 1999 RVA: 0x0030128F File Offset: 0x002FF48F
		// (set) Token: 0x060007D0 RID: 2000 RVA: 0x00301297 File Offset: 0x002FF497
		public virtual TObjectName Text_pointer
		{
			get
			{
				return this.text_pointer;
			}
			set
			{
				this.text_pointer = value;
			}
		}

		// Token: 0x1700016C RID: 364
		// (get) Token: 0x060007D1 RID: 2001 RVA: 0x003012A0 File Offset: 0x002FF4A0
		// (set) Token: 0x060007D2 RID: 2002 RVA: 0x003012A8 File Offset: 0x002FF4A8
		public virtual TObjectName WriteData
		{
			get
			{
				return this.writeData;
			}
			set
			{
				this.writeData = value;
			}
		}

		// Token: 0x060007D3 RID: 2003 RVA: 0x003012B4 File Offset: 0x002FF4B4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.columnName = ((TWritetextSqlNode)this.rootNode).ColumnName;
			this.text_pointer = ((TWritetextSqlNode)this.rootNode).Text_pointer;
			this.writeData = ((TWritetextSqlNode)this.rootNode).WriteData;
			return 0;
		}

		// Token: 0x060007D4 RID: 2004 RVA: 0x00301316 File Offset: 0x002FF516
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007D5 RID: 2005 RVA: 0x00301326 File Offset: 0x002FF526
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F0 RID: 4592
		private TObjectName columnName;

		// Token: 0x040011F1 RID: 4593
		private TObjectName text_pointer;

		// Token: 0x040011F2 RID: 4594
		private TObjectName writeData;
	}
}
